[6.0] Searchtools use requestSubmit() and add joomla:update listener#44496
Merged
softforge merged 6 commits intojoomla:6.0-devfrom Aug 13, 2025
Merged
Conversation
Contributor
Author
|
I would appreciate your feedback on whether this change makes sense to you. 🙂 @dgrammatiko @Fedik |
Member
|
Seems makes sense. |
Contributor
Author
|
Thanks for the suggestion, will add the additional check tomorrow. 👍🏼 |
Member
|
This pull request has been automatically rebased to 6.0-dev. |
Member
|
I have tested this item ✅ successfully on 81bc1a2 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44496. |
Contributor
|
Thank you @LadySolveig for this improvement and @Fedik for your chat and testing yesterday, nice to catch up with you |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request for Issue # .
Summary of Changes
This PR replaces submit() with requestSubmit() method to make it possible to work with the submit event in other places after submission of the searchtool filters. (e. g. submit form and only partly reload page via ajax).
You can find more information here https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/requestSubmit#usage_notes
It also adds a joomla:updated event event listener for this use case to reinitialize functionality after only partly reloading the page.
Testing Instructions
Preparation
Add this code snippet at the bottom of your backend template javascript file.
e. g.
media/templates/administrator/atum/js/template.jsActivate debug mode in backend.
(Optional) Load sampledata via sample data plugin to have items to search and filter :)
Open articles listview in backend and open your browser dev tools.
Test filter, search and order functionality

After testing and checking the result before applying this PR
Fetch the pr and run
npm ciReAdd code snippet to your backend template.
Test filter, search and order functionality as before and check again the console log.
Additional check filter and search functionality in other listviews to make sure all works as before.
Actual result BEFORE applying this Pull Request
Nothing should be shown in your browser developement console log.
Expected result AFTER applying this Pull Request
You should see something like this in your browser developement console log.

[Important] Search and filter should work as before!
Link to documentations
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed